package com.payment.system.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.payment.system.domain.AcqBind;
import com.payment.system.mapper.AcqBindMapper;
import com.payment.system.service.IAcqBindService;

/**
 * 信用卡通道绑定中间 服务层实现
 *
 * @author payment
 * @date 2019-02-15
 */
@Service
public class AcqBindServiceImpl implements IAcqBindService {
    @Autowired
    private AcqBindMapper acqBindMapper;

    /**
     * 查询信用卡通道绑定中间信息
     *
     * @param id 信用卡通道绑定中间ID
     * @return 信用卡通道绑定中间信息
     */
    @Override
    public AcqBind selectAcqBindById(String id) {
        return acqBindMapper.selectAcqBindById(id);
    }

    /**
     * 查询信用卡通道绑定中间列表
     *
     * @param acqBind 信用卡通道绑定中间信息
     * @return 信用卡通道绑定中间集合
     */
    @Override
    public List<AcqBind> selectAcqBindList(AcqBind acqBind) {
        return acqBindMapper.selectAcqBindList(acqBind);
    }

    /**
     * 新增信用卡通道绑定中间
     *
     * @param acqBind 信用卡通道绑定中间信息
     * @return 结果
     */
    @Override
    public int insertAcqBind(AcqBind acqBind) {
        return acqBindMapper.insertAcqBind(acqBind);
    }

    /**
     * 修改信用卡通道绑定中间
     *
     * @param acqBind 信用卡通道绑定中间信息
     * @return 结果
     */
    @Override
    public int updateAcqBind(AcqBind acqBind) {
        return acqBindMapper.updateAcqBind(acqBind);
    }

    @Override
    public AcqBind selectAcqBindByAcqIdAndCardId(String creditCardId, String acqId) {
        // TODO Auto-generated method stub
        return acqBindMapper.selectAcqBindByBankIdAndAcqId(acqId, creditCardId);
    }


}
